﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TuLing.Blazor.Migrations
{
    public partial class seeds : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 1L, "User_View", "用户查看" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 2L, "User_Edit", "用户编辑" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 3L, "User_Delete", "用户删除" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 4L, "Role_View", "角色查看" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 5L, "Role_Edit", "角色编辑" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 6L, "Role_Delete", "角色删除" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 7L, "Permission_View", "权限查看" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 8L, "Permission_Edit", "权限编辑" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 9L, "Permission_Delete", "权限删除" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 10L, "Product_View", "产品查看" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 11L, "Product_Edit", "产品编辑" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 12L, "Product_Delete", "产品删除" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 13L, "Order_View", "订单查看" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 14L, "Order_Edit", "订单编辑" });

            migrationBuilder.InsertData(
                table: "Permissions",
                columns: new[] { "Id", "UniqueCode", "UniqueName" },
                values: new object[] { 15L, "Order_Delete", "订单删除" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 1L, "管理员", "系统管理员" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 2L, "销售员", "负责销售业务" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 3L, "采购员", "负责采购业务" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 4L, "仓库管理员", "负责仓库管理" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 5L, "财务", "负责财务管理" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 6L, "客服", "负责客户服务" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 7L, "运营", "负责运营管理" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 8L, "市场", "负责市场推广" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 9L, "技术支持", "负责技术支持" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 10L, "产品经理", "负责产品管理" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 11L, "测试", "负责系统测试" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 12L, "人事", "负责人力资源" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 13L, "审计", "负责审计工作" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 14L, "外部顾问", "外部专家顾问" });

            migrationBuilder.InsertData(
                table: "Roles",
                columns: new[] { "Id", "Name", "Remark" },
                values: new object[] { 15L, "访客", "只读权限" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 1L, null, "admin", "123456", null, "系统管理员" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 2L, null, "user01", "123456", null, "普通用户01" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 3L, null, "user02", "123456", null, "普通用户02" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 4L, null, "user03", "123456", null, "普通用户03" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 5L, null, "user04", "123456", null, "普通用户04" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 6L, null, "user05", "123456", null, "普通用户05" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 7L, null, "user06", "123456", null, "普通用户06" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 8L, null, "user07", "123456", null, "普通用户07" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 9L, null, "user08", "123456", null, "普通用户08" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 10L, null, "user09", "123456", null, "普通用户09" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 11L, null, "user10", "123456", null, "普通用户10" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 12L, null, "user11", "123456", null, "普通用户11" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 13L, null, "user12", "123456", null, "普通用户12" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 14L, null, "user13", "123456", null, "普通用户13" });

            migrationBuilder.InsertData(
                table: "Users",
                columns: new[] { "Id", "Account", "Name", "Password", "Phone", "Remark" },
                values: new object[] { 15L, null, "user14", "123456", null, "普通用户14" });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 1L, 1L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 2L, 2L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 3L, 3L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 4L, 4L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 5L, 5L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 6L, 6L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 7L, 7L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 8L, 8L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 9L, 9L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 10L, 10L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 11L, 11L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 12L, 12L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 13L, 13L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 14L, 14L });

            migrationBuilder.InsertData(
                table: "RolePermissions",
                columns: new[] { "PermissionId", "RoleId" },
                values: new object[] { 15L, 15L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 1L, 1L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 2L, 2L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 3L, 3L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 4L, 4L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 5L, 5L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 6L, 6L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 7L, 7L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 8L, 8L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 9L, 9L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 10L, 10L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 11L, 11L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 12L, 12L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 13L, 13L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 14L, 14L });

            migrationBuilder.InsertData(
                table: "UserRoles",
                columns: new[] { "RoleId", "UserId" },
                values: new object[] { 15L, 15L });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 1L, 1L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 2L, 2L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 3L, 3L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 4L, 4L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 5L, 5L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 6L, 6L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 7L, 7L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 8L, 8L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 9L, 9L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 10L, 10L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 11L, 11L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 12L, 12L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 13L, 13L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 14L, 14L });

            migrationBuilder.DeleteData(
                table: "RolePermissions",
                keyColumns: new[] { "PermissionId", "RoleId" },
                keyValues: new object[] { 15L, 15L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 1L, 1L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 2L, 2L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 3L, 3L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 4L, 4L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 5L, 5L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 6L, 6L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 7L, 7L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 8L, 8L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 9L, 9L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 10L, 10L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 11L, 11L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 12L, 12L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 13L, 13L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 14L, 14L });

            migrationBuilder.DeleteData(
                table: "UserRoles",
                keyColumns: new[] { "RoleId", "UserId" },
                keyValues: new object[] { 15L, 15L });

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 1L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 2L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 3L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 4L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 5L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 6L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 7L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 8L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 9L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 10L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 11L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 12L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 13L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 14L);

            migrationBuilder.DeleteData(
                table: "Permissions",
                keyColumn: "Id",
                keyValue: 15L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 1L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 2L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 3L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 4L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 5L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 6L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 7L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 8L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 9L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 10L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 11L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 12L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 13L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 14L);

            migrationBuilder.DeleteData(
                table: "Roles",
                keyColumn: "Id",
                keyValue: 15L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 2L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 3L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 4L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 5L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 6L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 7L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 8L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 9L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 10L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 11L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 12L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 13L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 14L);

            migrationBuilder.DeleteData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 15L);
        }
    }
}
